﻿@model TicketMaster.Web.Models.Reservation.ReservationStepThree
@{
    ViewBag.Title = "Reservation";
}

<div style="margin-top: 10px;">
    @foreach (var seat in Model.Seats)
    {
        if (seat.IsFree)
        {
            <div onclick="location.href='@Url.Action("BookSeat", "Reservation", new { seatID = seat.ID })'"
                style="border: 1px solid black; width: 50px; height: 50px; font-size: 20px; display: block; background-color: green;">
                <b>
                    @seat.Number
                </b>
            </div>
        }
        else
        {
            <div style="border: 1px solid black; width: 50px; height: 50px; font-size: 20px; display: block; background-color: red;"><b>@seat.Number</b></div>
        }
    }
</div>